;;; init-zig.el --- zig lang config
;;; Commentary:
;;; Code:

(use-package zig-mode
  :defer t
  :mode ("\\.zig\\'" . zig-mode))

(leader-key zig-mode-map
  "m" '(:ignore t :wk "lang")
  "mx" '(quickrun :wk "run")
  "mf" '(zig-format-buffer :wk "format")
  "mt" '(zig-test-buffer :wk "test")
  "mg" '(:ignore t :wk "goto")
  "mgb" '(zig-beginning-of-defun :wk "defun begin")
  "mge" '(zig-end-of-defun :wk "defun end"))

(provide 'init-zig)
;;; init-zig.el ends here
